package com.woniuxy.mapper;

import com.woniuxy.entity.Car;
import com.woniuxy.entity.CarExample;

import java.util.List;

import com.woniuxy.vo.CarVO;
import org.apache.ibatis.annotations.Param;


/*
@author Jan
@create 2020-05-20 19:00

*/

public interface CarMapper {
    long countByExample(CarExample example);

    int deleteByExample(CarExample example);

    int deleteByPrimaryKey(Integer carId);

    int insert(Car record);

    int insertSelective(Car record);

    List<Car> selectByExample(CarExample example);

    Car selectByPrimaryKey(Integer carId);

    int updateByExampleSelective(@Param("record") Car record, @Param("example") CarExample example);

    int updateByExample(@Param("record") Car record, @Param("example") CarExample example);

    int updateByPrimaryKeySelective(Car record);

    int updateByPrimaryKey(Car record);

    //根据营地id查询房车信息
    List<CarVO> selectCarByCampId(Integer campId);

    int selectCarIdByCarName(String carName);
}